This page will document applications of the Lambert W function that are too short to comprise individual presentations on this website.
Definition of the Function
Calculus of the Function
Solution of the Equation yx = xy
Solutions of Other Equations
Iterated Exponentiation
This function is defined implicitly as the inverse of the nonlinear transcendental equation
Since the function inverts this relation, one can immediately write
The Lambert function has an infinite number of complex branches, like the complex natural logarithm that approximates it. The principal branch is designated .
Slightly rearranging the defining equation,
it is clear that the following relation holds between different branches of the Lambert function:
This is analogous to how branches of the complex logarithm are related to one another.
An approximation to the function useful for numerical root finding is
This approximation becomes exact asymptotically, which can be seen by putting it into the defining equation and letting the independent variable grow,
where the last step follows from applying l’Hôpital’s rule to the fraction.
Both the function and its inverse are supported in Math as fully complex functions.
The derivative of the function is found by differentiating the defining equation implicitly:
The integral of the function is surprisingly easy to evaluate because integration by parts of a polynomial against an exponential is trivial:
A power series about the origin can be found using Lagrange inversion. From the defining equation, the function is necessarily zero at the origin because the exponential function is nonzero positive for finite real argument. The inversion statement simplifies considerably:
This approach is much simpler that explicit evaluation of derivatives for a Taylor series.
The radius of convergence of this series can be found using the ratio test, which takes the absolute value of the ratio of adjacent coefficients:
Since the radius of convergence is so small, numerical evaluation of the function via the power series is not practical. A better approach is Newton’s method, which is used in Math.
This equation clearly has a trivial solution . It also has a solution in terms of powers of two:
There is additionally a solution that is not obvious. First take a logarithm of both sides of the equation,
then note the following inverse function value:
This means one can write
without much algebraic manipulation. The two continuous solutions look like this:
The portion in red comes from the principal branch of the Lambert function, while the portion in magenta requires the branch . The two solutions meet at where
on both of the branches involved.
Another way to represent the nonobvious solution is via a parametrization. Setting , the equation becomes
It is straightforward to insert this parametrization in the previous solution to verify that it is correct.
Other bases in the defining equation are handled rather easily:
A doubly exponentiated variable can be solved with an intermediate exponential :
A linear combination of a variable and its exponential can handled with an intermediate linear variable
An additional constant factor on the linear term adds a denominator to the intermediate variable, altering the solution to
The particular branch has not be specified in these solutions since any branch serves as a solution. This is because the dependent variable appears in entire functions. This is not true of the next equation.
Taking a logarithm of both sides of the following transcendental equation indicates that is is soluble by the Lambert function:
Numerical evaluation of this expression followed by substitution in the original equation indicates that it is not satisfied by just any branch. The necessary branch can be determined using the relation above between different branches:
Then the correct solution to the original equation is
with n as indicated.
Iterated exponentiation is defined by the expression
whenever it converges: for real numbers that occurs for . The expression can be evaluated with the Lambert function by rearranging into the latter’s defining equation:
And here’s how this function looks on the specified interval, using the principal branch of the Lambert function:
Uploaded 2020.11.27 — Updated 2022.11.24 analyticphysics.com